package com.wisely.xxboot;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * <p>Description:</p>
 * <p>Copyright: Copyright (c) 2017</p>
 * <p>Company: 中视数讯</p>
 * <p>Site: www.digi-zones.com</p>
 *
 * @author shengping
 * @version 1.0
 * @date 2017/7/4
 */
@Component
public class Receiver {
    @JmsListener(destination = "in-destination") //1
    public void receiveMessage(String message) {
        System.out.println("接受到: <" + message + ">");
    }
}
